package com.baoyang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baoyang.entity.BaoyangPermission;
import com.baoyang.entity.vo.PermissionMenuReqVO;

import java.util.List;

public interface BaoyangPermissionService {
    List<BaoyangPermission> listAll();

    boolean save(PermissionMenuReqVO reqVO);

    boolean removeById(String id);

    List<String> getMenusByRoleId(String roleId);

    boolean editRole(PermissionMenuReqVO reqVO);

    IPage<BaoyangPermission> pageUserList(Page<BaoyangPermission> page, String name);
}